<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<div class="easyui-panel" data-options="fit:true,border:0">
	<div id="toolbar_user" class="paddingTBL">
		<div class="paddingB"> 
			<label>用户类型&nbsp;</label>
			<input id="type_user" class="inputWH"/>
			<label class="paddingL">默认科室&nbsp;</label>
			<input id="defaultDept_user" class="inputWH"/>
			<label class="paddingL labelWid4">用户组&nbsp;</label>
			<input id="userGroup_user" style="width:160px;height:24px;"/>
		</div>
		<div class="paddingB">
			<label>用户编号&nbsp;</label>
			<input id="userNum_user" class="easyui-textbox inputWH"/>
		    <label class="paddingL labelWid4">用户名&nbsp;</label>
			<input id="username_user" class="easyui-textbox inputWH"/>
			<label class="paddingL">CA序列号</label>
			<input id="netcaSN_user" class="easyui-textbox" style="width:158px;height:24px;"/>
			<span class="paddingL"></span><a href="#" id="query_user" >查询</a>
		</div>
		<div class="paddingB">
			<hr color="#bdb8b8" size="1" style="margin-left:-12px;"/>
		</div>
		<div>
		   <!--  <a href="#" id="add_user" Onclick="addUser()" style="width:60px;margin-left:10px;">添加</a>
		    <a href="#" id="edit_user" Onclick="editUser()" style="width:60px;margin-left:10px;">修改</a>
			<a href="#" id="remove_user" Onclick="removeUser()" style="width:60px;margin-left: 10px;">删除</a>
            <a href="#" id="updatePsw_user" Onclick="updatePsw()" style="width:60px;margin-left:10px;">修改密码</a> -->
			<a href="#" id="add_user" >添加</a>
			<span class="paddingbtn"></span><a href="#" id="edit_user" >修改</a>
			<span class="paddingbtn"></span><a href="#" id="remove_user" >删除</a>
			<span class="paddingbtn"></span><a href="#" id="updatePsw_user" >修改密码</a>
		</div>
	</div>
	<table id="dataGrid_user"></table>
</div>

 <div id="dialog_user" class="easyui-dialog" style="width:820px;height:455px;"
        data-options="border:0,iconCls:'icon-save',resizable:true,modal:true,closed:true">
        
    <div id="layout_user" class="easyui-layout" style="border:0;width:100%;height:386px;">
    	<div data-options="region:'west'" style="width:320px;" class="Cancel_borderT">
    		 <form id="userForm_user" method="post">
		    	<table class="paddingTBL" cellspacing="10">
		    		<tr>
		    			<td>CA序列号</td>
		    			<td>
		    				<select id="caSN_user" name="fnetcasn" data-options="width:160,height:24"></select>
		    			</td>
		    		    <td class="star-sty">*</td>
		    		</tr>
		    		<tr>
		    			<td>姓&nbsp;名</td>
		    			<td>
		    				<select id="name_user" name="ftyyhbh" data-options="width:160,height:24"></select>
		    			</td>
		    		    <td class="star-sty">*</td>
		    		</tr>
		    		<tr>
		    			<td>用户名</td>
		    			<td>
		    				<input type="text" id="resName_user" name="fcode" class="easyui-textbox" data-options="width:160,height:24"/>
		    			</td>
		    			<td class="star-sty">*</td>
		    		</tr>
		    		<tr>
		    			<td>用户组</td>
		    			<td>
		    				<select id="role_user" name="fgroupcode" style="width:160px;height:24px;"></select>
		    			</td>
		    			<td class="star-sty">*</td>
		    		</tr>
		    		<tr id="userPsw_user">
		    			<td>密&nbsp;码</td>
		    			<td>
		    				<input type="password" id="psw_user" name="fpassword" class="easyui-textbox" data-options="width:160,height:24"/></td>
		    			<td class="star-sty">*</td>
		    		</tr>
		    		<tr>
		    			<td>用户类型</td>
		    			<td>
		    				<select id="userType_user" name="fusertype" data-options="width:160,height:24"></select>
		    			</td>
		    			<td class="star-sty">*</td>
		    		</tr> 
		    		<tr>
		    			<td>默认科室</td>
		    			<td>
		    			    <select id="depart_user" name="ftykh" data-options="width:160,height:24"></select>
		    			</td>
		    			<td class="star-sty">*</td>
		    		</tr>
		    		<tr id="groupBox_user">
		    			<td>分组名</td>
		    			<td>
		    			   <select id="group_user" name="ffzbh" data-options="width:160,height:24"></select>
		    			</td>
		    			<td class="star-sty">*</td>
		    		</tr>
		    		<tr>
		    			<td>手机号</td>
		    			<td><input type="text" id="phone_user" name="fphone" class="easyui-textbox" data-options="width:160,height:24"/></td>
		    			<td>&nbsp;</td> 
		    		</tr>
		    	</table>
		    </form>
		    <span style="color: red;" class="paddingL">备注："*"为必填项</span>
	    </div>
    
	    <div data-options="region:'east'" style="width:250px;" class="Cancel_borderT">
		   <div class="workroom_title">工作病区</div>
	       <ul id="district_tree_user" ></ul> 
	    </div>
	    <div data-options="region:'center'" class="Cancel_borderT">
	        <div class="workroom_title">工作科室</div>
	        <ul id="tree_user" ></ul>
	    </div>
    </div>
        
</div>

<!-- 修改用户密码 -->
<div id="pswDialog_user" class="easyui-dialog" style="width:360px;height:180px;"
        data-options="iconCls:'icon-save',resizable:true,modal:true,closed:true">
    <form id="pswForm_user" method="post">
    	<table class="pd20">
    		<tr>
    			<td class="res_title">新密码</td>
    			<td><input type="password" id="newPsw_user" class="easyui-textbox combo-w" required="required" name="newPsw"/></td>
    		</tr>
    		<tr>
    			<td class="res_title">确认密码</td>
    			<td><input type="password" id="confirmPsw_user" class="easyui-textbox combo-w" required="required" name="confirmPsw"/></td>
    		</tr>
    	</table>
    </form>
</div>

<script src="<%=request.getContextPath()%>/js/systemMaintenance/user.js"></script>